package org.lq.his.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lq.his.pojo.DoctorRankClass;
import org.lq.his.pojo.Registration;

public interface DoctorRankClassDao extends CommonDao<DoctorRankClass, Integer>{
	
	public void updateLeave(Integer[] ids);
	//主:根据科室和挂号类型查询值班医生
	public List<DoctorRankClass> getShiftDoctor(@Param("condition")DoctorRankClass condition);
	
	/**
	 * 根据挂号信息查询排班
	 * @param registration
	 * @return
	 */
	public DoctorRankClass getByRegistration(@Param("condition")Registration registration);

	
	public void editLimitAndRegistration(@Param("condition")DoctorRankClass condition,@Param("typeId")Integer typeId);
	
	/**
	 * 换号后反转加减限号和挂号
	 * @param condition
	 * @param typeId
	 */
	public void editAddLimitAndRegistration(@Param("condition")DoctorRankClass condition,@Param("typeId")Integer typeId);
	
	
}
